﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class UserControl_TimKiem : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        
    }
    public String getRequest()
    {
        string str = "";
        if (!String.IsNullOrEmpty(Request.QueryString["thuonghieuID"]))
        {
            str="&NhanHieuID="+Request.QueryString["thuonghieuID"];
        }
        if (!String.IsNullOrEmpty(Request.QueryString["loaiID"]))
        {
            str= str+"&LoaiID="+Request.QueryString["loaiID"];
        }
        if (!String.IsNullOrEmpty(Request.QueryString["chucnangID"]))
        {
            str= str+"&chucnangID="+Request.QueryString["chucnangID"];
        }
        return str;
    }
    protected void LinkButton1_Click(object sender, EventArgs e)
    {
        Response.Redirect("DanhSach.aspx?DenGia=1000000" + getRequest());
    }
    protected void LinkButton2_Click(object sender, EventArgs e)
    {
        Response.Redirect("DanhSach.aspx?TuGia=1000000&DenGia=2000000" + getRequest());
    }
    protected void LinkButton3_Click(object sender, EventArgs e)
    {
        Response.Redirect("DanhSach.aspx?TuGia=2000000&DenGia=4000000" + getRequest());
    }
    protected void LinkButton4_Click(object sender, EventArgs e)
    {
        Response.Redirect("DanhSach.aspx?TuGia=4000000&DenGia=6000000" + getRequest());
    }
    protected void LinkButton5_Click(object sender, EventArgs e)
    {
        Response.Redirect("DanhSach.aspx?TuGia=6000000" + getRequest());
    }
}